package com.yxkj.syh.app.huarong.api;

import com.yxkj.syh.app.huarong.bean.PagesRequest;

import java.util.Map;

import io.reactivex.Observable;
import okhttp3.ResponseBody;
import retrofit2.http.Body;
import retrofit2.http.POST;
import retrofit2.http.Path;

/**
 * 创建者：SYH
 * 时间：2020/6/1 9:58
 * 编辑者：SYH、
 * 标签：
 * 补充说明：
 */
public interface ReportApi {

    @POST("api/logistics/driver/findAllData")
    Observable<ResponseBody> report(@Body Map<String,Object> pMap);

    @POST("api/pur/car-subscribe/findBy")
    Observable<ResponseBody> homeData(@Body PagesRequest request);

    @POST("api/pur/car-subscribe/findPageSub")
    Observable<ResponseBody> appointments();

    @POST("api/pur/car-subscribe/findInfo/{id}")
    Observable<ResponseBody> returnCarInfo(@Path("id") long id);

    @POST("api/pur/car-subscribe/subscriber")
    Observable<ResponseBody> appointment(@Body Map<String,Object> pMap);

    @POST("api/pur/car-subscribe/cancel/{id}")
    Observable<ResponseBody> unappointment(@Path("id") long id);



}
